﻿using BHan.Model.Common;
using CommunityToolkit.Mvvm.ComponentModel;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BHan.Model.Entity.Pojo
{
    /// <summary>
    /// 菜单实体类
    /// </summary>
    public class MenuModel 
    {
        /// <summary>
        /// 主键id
        /// </summary>
        public int menuId { get; set; }

        /// <summary>
        /// 菜单名称
        /// </summary>
        public string? menuName { get; set; }

        /// <summary>
        /// 父类菜单
        /// </summary>
        public int? pMenuId { get; set; }

        /// <summary>
        /// 菜单排序顺序
        /// </summary>
        public int? orderNum { get; set; }

        /// <summary>
        /// 地址（窗体Name）
        /// </summary>
        public string? path { get; set; }

        /// <summary>
        /// 图标
        /// </summary>
        public string? icon { get; set; }

        /// <summary>
        /// 菜单类型 C=目录 M=菜单 B=按钮
        /// </summary>
        public string? menuType { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public string? status { get; set; }

        /// <summary>
        /// 逻辑删除
        /// </summary>
        public bool? delFlag { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string? remark { get; set; }

        public List<MenuModel> subItems { get; set; } = new List<MenuModel>();
         
    }
}
